const babel = require('@babel/core')
const code = `
  async function Async1() {
    await fetch();
  }

  async function Async2() {
    const { data } = await fetch();
    
    
    return data;
  }

  const Async3 = async function () {
    const { code } = await fetch();
    
    
    return code;
  }
`

// console.log(babel.transformFromAstSync(babel.parse(code,{
//   sourceType:'module'
// })).code)

console.log(babel.transform(code).code)